//
//  LZYDatePickerView.h
//  DigitalCampus
//
//  Created by bjhj on 17/4/12.
//  Copyright © 2017年 刘占宇. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LZYDatePickerView;

@protocol LZYDatePickerViewDelegate <NSObject>

@optional
/**
 返回选择的时间字符串
 
 @param pickerView pickerView
 @param dateString 时间字符串
 */
- (void)pickerView:(LZYDatePickerView *)pickerView didSelectDateString:(NSString *)dateString;

@end

typedef void(^LZYDatePicker)(NSString *dateString);

@interface LZYDatePickerView : UIView

@property (nonatomic, weak) id<LZYDatePickerViewDelegate> delegate;

/**
 初始化ZHDatePickerView
 
 @param date 默认时间
 @param mode 时间显示格式
 @return ZHDatePickerView
 */
- (instancetype)initDatePickerWithDefaultDate:(NSDate *)date
                            andDatePickerMode:(UIDatePickerMode )mode;

/**
 移除PickerView
 */
- (void)remove;

/**
 显示PickerView
 */
- (void)show;

@property (nonatomic, copy) LZYDatePicker LzyDatePicker;

@end
